import request from '@/utils/request'
import qs from 'qs'
// 查询用户单位LOGO
export const getuserlogoapi = params => request.get(`/core/api/entity/sys/customlogoconfig?owner=${params.owner}`)
// /创建用户单位LOGO
// export const postuserlogoapi=data=>request.post(`/core/api/entity/sys/customlogoconfig?owner=${data.owner}&logoImage=${data.logoImage}&createUser=${data.createUser}`)
export const postuserlogoapi=data=>request.post(`/core/api/entity/sys/customlogoconfig`,qs.stringify(data))
// 删除用户单位LOGO
export const deluserlogoapi = data => request.post(`/core/api/entity/sys/customlogoconfig/delete?owner=${data.owner}`)
// 修改用户单位LOGO
// export const putuserlogoapi=data=>request.post(`core/api/entity/sys/customlogoconfig/put?owner=${data.owner}&logoImage=${data.logoImage}`)
export const putuserlogoapi=data=>request.post(`core/api/entity/sys/customlogoconfig/put`,qs.stringify(data))